package org.example.learn.bytebuddy.annotation;

import net.bytebuddy.implementation.bind.annotation.AllArguments;
import net.bytebuddy.implementation.bind.annotation.Origin;

import java.lang.reflect.Method;
import java.util.Arrays;

// 委托类
public class DataRepositoryInterceptor {

    public static String intercept(@Origin Method method, @AllArguments Object[] args){
        return method.getName()+"/?id="+ Arrays.toString(args).replace("[","").replace("]","");
    }
}
